feat: add raise-pr and bug-fix skills with Jira integration (v0.7.0)#54
Open
its-mitesh-kumar wants to merge 4 commits into
Open
feat: add raise-pr and bug-fix skills with Jira integration (v0.7.0)#54its-mitesh-kumar wants to merge 4 commits into
its-mitesh-kumar wants to merge 4 commits into
Conversation
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
raise-prskill that automates the full PR workflow (detect workspace, build, generate changeset, commit, push, create PR) for bothrhdh-pluginsandcommunity-pluginsmonoreposgit remote -vand adapts PR template, npm scope, and upstream target accordingly--aauto-approve mode to skip all approval gates for unattended workflowsbug-fixskill for end-to-end bug fixing from Jira tickets with Playwright-based before/after screen recordingsArchitecture
Context
Extracts and generalizes the existing Cursor command (
rhdh-plugins/.cursor/commands/pr.md) and its #3679 enhancement into a portable agent skill that works across both plugin monorepos.The
raise-prskill has first-class Jira support — any PR linked to a Jira issue gets automatic branch naming (fix/<workspace>-<JIRA-KEY>-<slug>), aFixes:commit trailer, a## Fixedsection in the PR body, and post-PR Jira updates (Web Link + comment + transition to Review).The
bug-fixskill chains intoraise-prafter reproducing and fixing a bug: it writes a Playwright reproduction test with video recording, diagnoses the root cause, applies the fix, captures before/after recordings, converts them to GIFs, and creates the PR with embedded visual evidence.How to Use
Prerequisites
rhdh-plugins(orcommunity-plugins)yarnavailable on PATHffmpegon PATH (for converting screen recordings to GIFs). Install if missing:which ffmpeg || brew install ffmpeg.jira-tokenfile next toaclibinary, or Jira MCP in CursorInstall
Install from local checkout (while PR is unmerged):
cd /path/to/rhdh-plugins npx skills add /path/to/rhdh-skill --skill bug-fix npx skills add /path/to/rhdh-skill --skill raise-prAfter merge:
Invoke
What it does
workspaces/lightspeed).webmrecordings to GIFs viaffmpegraise-pr— builds, generates changeset, commits, pushes, creates PR with before/after GIFs embedded, then adds Web Link + comment on the Jira issue and transitions it to ReviewUsing raise-pr standalone with Jira
When a Jira key is provided,
raise-prautomatically:fix/<workspace>-<JIRA-KEY>-<slug>Fixes:trailer in the commit message## Fixedsection in the PR body with the Jira linkFiles
raise-pr skill
skills/raise-pr/SKILL.md— 11-step workflow with repo auto-detection,--aauto-approve mode, Jira context resolution, and post-PR Jira updatesskills/raise-pr/references/repo-profiles.md— per-repo config (upstream remote, npm scope, PR body template with conditional Jira/recording sections)skills/raise-pr/references/jira-input.md— shared Jira key/URL parsing logic and REST API patterns (auth, remote links, transitions)bug-fix skill
skills/bug-fix/SKILL.md— 8-step workflow (fetch Jira issue, identify workspace, reproduce with video, diagnose, fix, verify, convert videos, chain into raise-pr)skills/bug-fix/references/workspace-map.md— Jira component to rhdh-plugins workspace directory mapping with runtime discovery instructionsskills/bug-fix/references/e2e-patterns.md— shared Playwright patterns across all workspaces (multi-locale, dual-mode, translation helpers, MUI patterns, repro test template)skills/bug-fix/references/video-recording.md— Playwright video config, ffmpeg conversion, and GitHub PR embedding workflowMetadata
README.md— added Bug Fix section, updated raise-pr description with Jira integration mentionpyproject.toml,.claude-plugin/plugin.json,.claude-plugin/marketplace.json— version bump to 0.7.0Test plan
uv run pytestpasses (321 passed, 1 pre-existing failure unrelated to this PR)test_skill_structure.py)test_marketplace.py)npx skills add redhat-developer/rhdh-skill --skill raise-prand verify Jira input parsingnpx skills add redhat-developer/rhdh-skill --skill bug-fixand verify trigger phrasesraise-prwith a Jira key: verify branch name, commit trailer, PR body, and post-PR Jira updatesbug-fixwith an RHDHBUGS issue: verify full workflow from reproduction to PR creation